﻿namespace Stickam_Client
{
    [DesignerGenerated]
    public __gc class Form_Webpage : public Form
    {
        // Methods
        [DebuggerNonUserCode]
        public: Form_Webpage()
        {
            base->Load += new EventHandler __gc*(this.Form_Webpage_Load);
            base->FormClosing += new FormClosingEventHandler __gc*(this.Form_Webpage_FormClosing);
            this->InitializeComponent();
        }

        private: void __gc* Browser_DocumentCompleted(Object __gc* sender, WebBrowserDocumentCompletedEventArgs __gc* e)
        {
            this->Loaded = true;
        }

        [DebuggerNonUserCode]
        protected: override void __gc* Dispose(Boolean __gc* disposing)
        {
            try
            {
                if (disposing && (this->components != 0))
                {
                    this->components->Dispose();
                }
            }
            finally
            {
                base->Dispose(disposing);
            }
        }

        private: void __gc* Form_Webpage_FormClosing(Object __gc* sender, FormClosingEventArgs __gc* e)
        {
            this->Loaded = false;
        }

        private: void __gc* Form_Webpage_Load(Object __gc* sender, EventArgs __gc* e)
        {
            this->Browser->Navigate(String::Concat(Environment::CurrentDirectory, S"\\webpage\\index.html"));
        }

        [DebuggerStepThrough]
        private: void __gc* InitializeComponent()
        {
            this->Browser = __gc new WebBrowser();
            this->SuspendLayout();
            this->Browser->Dock = DockStyle::Fill;
            Point __gc* point = (0, 0);
            this->Browser->Location = point;
            Size __gc* size = (20, 20);
            this->Browser->MinimumSize = size;
            this->Browser->Name = S"Browser";
            size = (0x19e, 0x128);
            this->Browser->Size = size;
            this->Browser->TabIndex = 0;
            SizeF __gc* ef = (6, 13);
            this->AutoScaleDimensions = ef;
            this->AutoScaleMode = AutoScaleMode::Font;
            size = (0x19e, 0x128);
            this->ClientSize = size;
            this->Controls->Add(this->Browser);
            this->FormBorderStyle = FormBorderStyle::FixedToolWindow;
            this->Name = S"Form_Webpage";
            this->Text = S"Webpage";
            this->ResumeLayout(false);
        }


        // Properties
        [DebuggerNonUserCode]
        public private: __property virtual WebBrowser __gc* get_Browser()
        {
            return this->_Browser;
        }
        [MethodImpl(MethodImplOptions::Synchronized), DebuggerNonUserCode]
        public private: __property virtual void __gc* set_Browser(WebBrowser __gc* WithEventsValue)
        {
            WebBrowserDocumentCompletedEventHandler __gc* handler = new WebBrowserDocumentCompletedEventHandler __gc*(this.Browser_DocumentCompleted);
            if (this->_Browser != 0)
            {
                this->_Browser->DocumentCompleted -= handler;
            }
            this->_Browser = WithEventsValue;
            if (this->_Browser != 0)
            {
                this->_Browser->DocumentCompleted += handler;
            }
        }


        // Fields
        [AccessedThroughProperty(S"Browser")]
        private: WebBrowser __gc* _Browser;
        private: IContainer __gc* components;
        public: Boolean __gc* Loaded;
    };
}

